import wx

class ScorePanel(wx.Panel):
    def __init__(self, *args, **kwargs):
        wx.Panel.__init__(self, *args, **kwargs) 
        
        self.text = wx.StaticText(self, wx.ID_ANY, "")

    def update(self, engine):
        self.text.SetLabel(str(engine.combat_results[-1]))
